<template>
  <div>
    {{env}}
  </div>
</template>

<script>
export default {
  name: 'EnvironmentContent',
  props: {
    only: { type: [String, Array], default: () => ([]) },
  },
  data() {
    return {
    };
  },
  computed: {
    env() {
      return process.env;
    },
    show() {
      let only = this.only ? this.only : [];
      only = Array.isArray(only) ? only : [only];

      return only.indexOf(this.env) >= 0;
    },
  },
  created() {
  },
  methods: {
  },
};
</script>
<style lang="scss" scoped>
</style>
